<?php

/**
 * CreateTime: 2023/11/15 10:17
 * User:LinQ
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // 已废弃改表 改为用文件的形式
        if(false){
            Schema::create('request_log', function (Blueprint $table) {
                // 数据库基本配置
                $table->engine = 'InnoDB';
                // 数据库字段
                $table->id('request_log_id')->comment("请求日志id");
                $table->string('ip',50)->comment("请求的ip");
                $table->json('request_header')->nullable(false)->comment("请求头");
                $table->json('request_data')->nullable(false)->comment("请求的数据信息");
                $table->string('request_id',50)->nullable(false)->comment("请求唯一标识");
                $table->json('response_all')->nullable(false)->comment("返回的响应信息");
                $table->timestamps();
            });
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
};
